package com.etc.test;

import com.etc.entity.AnswerBean;
import com.etc.entity.CommentBean;
import com.etc.entity.Question;
import com.etc.service.AnswerBeanService;
import com.etc.service.CommentBeanService;
import com.etc.service.QuestionService;
import com.etc.service.impl.AnswerBeanServiceImpl;
import com.etc.service.impl.CommentBeanServiceImpl;
import com.etc.service.impl.QuestionServiceImpl;
import com.etc.util.PageData;

public class Te {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		AnswerBeanService abs=new AnswerBeanServiceImpl();
		/*PageData<AnswerBean> pd=abs.queryAnswersByPageNo(329, 1, 10, "");
		pd.getData().forEach(System.out::println);*/
		/*AnswerBean ab=new AnswerBean(20, 2);
		boolean flag=abs.getUpdateAnswerBeanPraise(ab);
		System.out.println(flag);*/
		QuestionService qs=new QuestionServiceImpl();
		Question q=new Question(20, 1);
		boolean flag=qs.getUpdateQuestionPraise(q);
		System.out.println(flag);
	}

}
